package com.ccb.sc.goods.controller.query;

import com.ccb.sc.goods.enums.OrderBy;
import com.ccb.sc.common.bind.page.PageParams;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author ken
 * @version 1.0
 * @date 2020-09-21
 */
@Data
@ApiModel
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class AppGoodsSearchParam extends PageParams {

    @ApiModelProperty("搜索值")
    private String key;

    @ApiModelProperty("排序字段 默认综合排序")
    private OrderBy orderBy = OrderBy.overall;

    @ApiModelProperty("排序方式 asc升序 desc降序 默认升序")
    private OrderBy.Direction direction = OrderBy.Direction.asc;

}
